from django.db import models
from django.utils.translation import ugettext_lazy as _

class Language(models.Model):
    code = models.CharField(max_length=5)
    country = models.CharField(max_length=100)

    class Meta:
        unique_together = (("code", "country"))
        verbose_name = _('Language')
        verbose_name_plural = _('Languages')
        ordering = ('code', 'country')

    def __unicode__(self):
        return ' - '.join([self.code, self.country])
